<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改tms物品信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-tmsMatnr-edit" th:object="${tmMatnr}">
            <input name="matnr" th:field="*{matnr}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">子物料号：</label>
                <div class="col-sm-8">
                    <input name="matnr" th:field="*{matnr}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物料名称：</label>
                <div class="col-sm-8">
                    <input name="maktx" th:field="*{maktx}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物料号：</label>
                <div class="col-sm-8">
                    <input name="matnrMain" th:field="*{matnrMain}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">款式：</label>
                <div class="col-sm-8">
                    <input name="ykutxt" th:field="*{ykutxt}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">规格：</label>
                <div class="col-sm-8">
                    <input name="ewbez" th:field="*{ewbez}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">颜色：</label>
                <div class="col-sm-8">
                    <input name="yyantxt" th:field="*{yyantxt}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">基本单位：</label>
                <div class="col-sm-8">
                    <input name="funit" th:field="*{funit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">包装单位：</label>
                <div class="col-sm-8">
                    <input name="fpackunit" th:field="*{fpackunit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">主序列标识：</label>
                <div class="col-sm-8">
                    <input name="fflag" th:field="*{fflag}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">母件码：</label>
                <div class="col-sm-8">
                    <input name="barcode" th:field="*{barcode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">子件码：</label>
                <div class="col-sm-8">
                    <input name="fbarcode" th:field="*{fbarcode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">子件总数：</label>
                <div class="col-sm-8">
                    <input name="num" th:field="*{num}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">子件单数：</label>
                <div class="col-sm-8">
                    <input name="fnum" th:field="*{fnum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">入库单号：</label>
                <div class="col-sm-8">
                    <input name="inStockId" th:field="*{inStockId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">单行号：</label>
                <div class="col-sm-8">
                    <input name="inStockDId" th:field="*{inStockDId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">序号：</label>
                <div class="col-sm-8">
                    <input name="fid" th:field="*{fid}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">出库单号：</label>
                <div class="col-sm-8">
                    <input name="outStockId" th:field="*{outStockId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">出库单id：</label>
                <div class="col-sm-8">
                    <input name="outStockDId" th:field="*{outStockDId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">状态：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="status" value="">
                        <label th:for="status" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "tmsMatnr/tmsMatnr";
        $("#form-tmsMatnr-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-tmsMatnr-edit').serialize());
            }
        }
    </script>
</body>
</html>